package com.uy.cuantoconocesdeuruguay.dialogs;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
import android.view.View;

import com.uy.cuantoconocesdeuruguay.R;

public class MODEL_DialogUtils {
	private Activity activity;	
	public MODEL_DialogUtils(Activity activity) {
		this.activity = activity;
	}

	public void create_MODEL_DIALOG_Popup(){
		View view = activity.getLayoutInflater().inflate(R.layout.challenge_finished, null);
		
		AlertDialog.Builder builder = new AlertDialog.Builder(activity);
	    builder.setView(view);
	    builder.setCancelable(true);
	    Dialog MODEL_Popup = builder.create();
		MODEL_Popup.show();	
	    
		MODEL_Popup.setOnDismissListener(new OnDismissListener() {			
			@Override
			public void onDismiss(DialogInterface dialog) {
				
			}
		});
	}
}
